import * as actionTypes from './constants'

const defaultState = {
    //默认值
    detailData:{
        evaluate:[]
    }
}

const reducer = (state = defaultState,action) =>{
    switch(action.type){
        case actionTypes.CHANGE_DETAIL_DATA:
            return {
                ...state,
                detailData:action.data
            }
        default:
            return state
        }
}

export default reducer